package com.company.责任链模式;

public class Test {
    public static void test(Handler handler,Request request){
        handler.handle(request);
    }

    public static void main(String[] args) {
        Handler handler = new TeamLeader(new DepLeader(new ComLeader(null)));
        test(handler,new Request(5));

    }
}
